package controller

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"love-backend/logic"
)

// 首页
type IndexController struct{}

func (self IndexController) RegisterRoute(g *gin.Engine) {
	g.GET("/user", self.getUer)
	g.GET("/banner")
}

func (IndexController) getUer(c *gin.Context) {
	lo := logic.IndexLogic{}
	notice := lo.GetUser()
	fmt.Println(notice)
}
